<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<title>商品编辑</title>
<%@include file="../collect/meta.jsp"%>
<link rel="stylesheet" href="css/radius.css" type="text/css"></link>
<link rel="stylesheet" href="css/Editstyle.css" type="text/css"></link>
<script type="text/javascript" charset="utf-8"
	src="${ctx}/calender/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/js/EditTariff.js"></script>
<script type="text/javascript" src="${ctx}/js/returnTop.js"></script>
</head>
<body lang="zh-cn">
	<div class="wrapper">
		<c:import url="/collect/top.jsp"></c:import>
		<div class="main-container" id="main-container">
			<div class="main-container-inner">
				<c:import url="/collect/left.jsp"></c:import>
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<ul class="breadcrumb">
							<li><i class="icon-home home-icon"></i>运营平台</li>
							<li>商品编辑</li>
						</ul>
						<!-- .breadcrumb -->
					</div>
					<div class="page-content">
						<div class="page-content-area">
							<div class="page-header">
								<h1>商品编辑</h1>
							</div>
							<div class="row">
								<div class="col-xs-12">
									<form class="form-horizontal" enctype="multipart/form-data"
										id="tariffFrom" name="tariffFrom">
										<div class="form-group">
											<label for="goodsName" class="col-xs-2 col-sm-1 col-md-2 lab">&nbsp商品名称:</label>
											<div class="col-xs-9 col-sm-6 col-md-10">
												<input type="text" class="form-control"
													name="good.goodsName" id="goodsName" placeholder="请输入商品名称">
												<span class="redstar">*</span>
												<p class="showtext" id="goodNameMessage"></p>
											</div>
										</div>

										<div class="form-group">
											<label class="col-xs-2 col-sm-1 col-md-2 lab">&nbsp商品图片:</label>
											<div class="col-xs-9 col-sm-6 col-md-10">
												<div class="div1">
													<div class="div2">上传图片</div>
													<input type="file" id="file" name="file" class="inputstyle">
													<span id="information"
														style="position:absolute;margin-left:80px;margin-top:-20px;"></span>
												</div>
												<p id="goodFileMessage" class="showtext"></p>
											</div>

										</div>

										<div class="form-group">
											<label for="tariffName"
												class="col-xs-2 col-sm-1 col-md-2 lab">&nbsp资费名称:</label>
											<div class="col-xs-9 col-sm-6 col-md-10">
												<input type="text" class="form-control"
													name="tariff.tariffName" id="tariffName"
													placeholder="请输入资费名称"> <span class="redstar">*</span>
												<p id="tariffNameMessage" class="showtext"></p>
											</div>

										</div>

										<div class="form-group">
											<label class="col-xs-2 col-sm-1 col-md-2 lab">&nbsp状态:</label>
											<div class="col-xs-9 col-sm-6 col-md-10">
												<select class="form-control" id="status"
													name="tariff.status">
													<option value="-1">请选择</option>
													<option value="0">有效</option>
													<option value="1">无效</option>
												</select> <span class="redstar">*</span>
												<p id="statusMessage" class="showtext"></p>
											</div>

										</div>

										<div class="form-group">
											<label for="fee" class="col-xs-2 col-sm-1 col-md-2 lab">&nbsp价格:</label>
											<div class="col-xs-9 col-sm-6 col-md-10">
												<input type="text" class="form-control" name="tariff.fee"
													id="fee" placeholder="请输入商品价格"> <span
													class="redstar">*</span>
												<p id="feeMessage" class="showtext"></p>
											</div>

										</div>

										<div class="form-group">
											<label class="col-xs-2 col-sm-1 col-md-2" style="width:80px;">&nbsp请选择:</label>
											<div class="col-xs-9 col-sm-6 col-md-10">
												<label class="checkbox-inline"> <input type="radio"
													id="valid" name="common" checked="checked">有效天数 </label> <label
													class="checkbox-inline"> <input type="radio"
													id="sum" name="common">数量 </label>
											</div>
										</div>

										<div class="form-group">
											<label class="col-xs-2 col-sm-1 col-md-2 lab"></label>
											<div class="col-xs-9 col-sm-6 col-md-10">
												<div id="days">
													<input type="text" class="form-control" name="day"
														id="validDays" placeholder="请输入有效天数，0为永久有效"> <span
														class="redstar">*</span>
													<p id="validDaysMessage" class="showtext"></p>
												</div>
												<div id="sums" style="display:none;">
													<input type="text" class="form-control" name="amount"
														id="amount" placeholder="请输入商品数量"> <span
														class="redstar">*</span>
													<p id="amountMessage" class="showtext"></p>
												</div>
											</div>
										</div>
										<!--
					                    <div class="form-group">
					                        <label class="col-xs-2 col-sm-1 col-md-2 lab">&nbsp生效时间:</label>
					                        <div class="col-xs-9 col-sm-6 col-md-10">      
					                        	<input type="text" class="Wdate" style="height:30px; width:220px;" name="beginDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="beginDate" placeholder="请输入生效时间">
					                        	<span class="redstar">*</span>
					                        	<p id="beginDateMessage" style="color:red;font-size:14px;position:absolute;margin-left:250px;margin-top:-25px;"></p>
					                        </div> 
					                                
					                     </div>
					                     <div class="form-group">
					                        <label class="col-xs-2 col-sm-1 col-md-2 lab">&nbsp失效时间:</label> 
					                        <div class="col-xs-9 col-sm-6 col-md-10">        
					                        	<input type="text" style="height:30px;width:220px"  class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="endDate" id="endDate" placeholder="请输入失效时间">
					                        	<span class="redstar">*</span>
					                        	<p id="endDateMessage" style="color:red;font-size:14px;position:absolute;margin-left:250px;margin-top:-25px;"></p>
					                        </div>
					                               
					                     </div>
					            -->
										<div class="form-group">
											<label for="tariff.description"
												class="col-xs-2 col-sm-1 col-md-2 lab" for="description">&nbsp备注:</label>
											<div class="col-xs-9 col-sm-6 col-md-10">
												<textarea class="form-control" rows="5"
													id="tariff.description" name="tariff.description"></textarea>
											</div>
										</div>
										<div id="btn-team">
											<button id="Edit" class="btn btn-info btn-md radius"
												type="button">编辑</button>
											&nbsp;
											<button class="btn btn-md btn-default radius" type="reset">重置</button>
										</div>
									</form>
								</div>
								<%-- <div style="position:absolute;right:250px;top:112px;">
									<img src="${good.goodsPic}"
										style="width:200px; height:200px;margin-bottom:20px;" alt="">
								</div> --%>
							</div>
							<!-- /.row -->
						</div>
						<!-- /.page-content-area -->
					</div>
					<!-- /.page-content -->
				</div>
				<!-- /.main-content -->
			</div>
			<!-- /.main-container-inner -->
			<a href="#" id="btn-scroll-up"
				class="btn-scroll-up btn btn-sm btn-inverse"
				style="position:fixed;bottom:0;"><i
				class="icon-double-angle-up icon-only bigger-110"></i> </a>
		</div>
		<!-- /.main-container -->
		<div class="push"></div>
	</div>
	<c:import url="/collect/down.jsp"></c:import>
</body>

<script type="text/javascript">
	$(document).ready(function() {
		//防收回
		$('.yunying > ul').show();
		$('.yunying > ul > li > a').eq(3).css("color", "red");
	});
</script>

</html>
